package com.bawei.livedata.net;

import com.bawei.livedata.entity.BannerEntity;
import com.bawei.livedata.entity.BaseResponseEntity;

import androidx.lifecycle.LiveData;
import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/12 10:57
 * @Description : Api
 */
public interface Api {
//    @GET("/banner/select")
//    Call<BaseResponseEntity<BannerEntity>> banner(@Query("type") int type,@Query("page") int page,@Query("pageSize") int pageSize);
//    @GET("/banner/select")
//    Observable<BaseResponseEntity<BannerEntity>> banner(@Query("type") int type, @Query("page") int page, @Query("pageSize") int pageSize);
    @GET("/banner/select")
    LiveData<BaseResponseEntity<BannerEntity>> banner(@Query("type") int type, @Query("page") int page, @Query("pageSize") int pageSize);

}
